package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`collect`")
public class Collect extends BaseEntity implements Serializable {
    /**
     * 收藏编号
     */
    @TableId(value = "COLLECT_ID", type = IdType.AUTO)
    private Integer collectId;

    /**
     * 商品编号
     */
    @TableField(value = "SPU_ID")
    private Integer spuId;
    private String spuName;
    private String spuBigimg;
    private Double spuMoney;


    /**
     * 用户编号
     */
    @TableField(value = "USER_ID")
    private Integer userId;

    /**
     * 收藏时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8")
    @TableField(value = "COLLECT_TIME")
    private Date collectTime;

    /**
     * 收藏状态
     */
    @TableField(value = "COLLECT_STATUS")
    private Byte collectStatus;

    private Boolean checked;

    private static final long serialVersionUID = 1L;

    public static final String COL_COLLECT_ID = "COLLECT_ID";

    public static final String COL_SPU_ID = "SPU_ID";

    public static final String COL_USER_ID = "USER_ID";

    public static final String COL_COLLECT_TIME = "COLLECT_TIME";

    public static final String COL_COLLECT_STATUS = "COLLECT_STATUS";
}
